package cn.edu.jxust.common.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author QiuKangming
 * @version 1.0
 * @description 角色视图对象
 * @since 2020/07/02 15:40
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "角色id不能为空")
    private Integer id;

    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    /**
     * 角色描述
     */
    private String roleDescription;

    @NotBlank(message = "编辑角色用户不能为空")
    private String editor;
}
